import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

  const routes = [
    {
      path: '/',
      redirect:'/commondity'
    },
  {
    path: '/commondity',
    name: 'Commondity',
    component: () => import('../views/commondity.vue')
  },
  {
    path: '/classification',
    name: 'Classification',
    component: () => import('../views/classification.vue')
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import('../views/order.vue')
  },
  {
    path: '/users',
    name: 'Users',
    component: () => import('../views/users.vue')
  },
  {
    path: '/ad',
    name: 'Ad',
    component: () => import('../views/ad.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
